package com.khyr.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @TableName health_news
 */
@TableName(value ="health_news")
@Data
public class News implements Serializable {
    @TableId
    private String newsId;

    private String imagUrl;

    private String newsTitle;

    private String newsContent;

    private String newsSource;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    private String createBy;

    private Date updateTime;

    private static final long serialVersionUID = 1L;
}